package com.sea.base.json

import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type

/**
 * 解析list的type类
 */
class ParameterizedTypeImpl(private val clazz: Class<*>) : ParameterizedType {
    override fun getActualTypeArguments(): Array<Type> {
        return arrayOf(clazz)
    }

    override fun getRawType(): Type {
        return MutableList::class.java
    }

    override fun getOwnerType(): Type? {
        return null
    }
}